<?php
require "../dao/speedsetdao.php";
class speedset{
	private $speedset;//业务模型
	
	public function speedset(){
		
		$dao=new speedsetdao();		
		$this->speedset=$dao->Chaxun();	
	}
	public function getspeed(){
		
		return $this->speedset;
	}
}
$speedset=new speedset();
$speedlist=$speedset->getspeed();


?>
<table class="tab">
<tr>
    <td>ID</td>
	<td>碰撞减速值</td>
	<td>最大减速值</td>
</tr>
<?php 
  foreach ($speedlist as $item=>$speed){ ?>
 <tr>
	<?php foreach ($speed as $i=>$value){?>
	<td ><?php echo $value; ?></td>
	<?php } ?>
</tr> 
 <?php }?>
 <tr>
 <td></td>
 <td><form  action="../controller/handout.php?con=speedset&action=crush" method="post">
<input type="text" name="crush" />
<input type="submit"  value="修改"/>
</form></td>
<td><form  action="../controller/handout.php?con=speedset&action=crushmax" method="post">
<input type="text" name="crushmax" />
<input type="submit"  value="修改"/>
</form></td>
 </tr>
</table>









